import { Component } from "react";
import './search.scss'
class Search extends Component {
  //改变状态
  constructor() {
    super();
    this.state = {
      
    }
  }
  //点击事件
  on = ()=>{
    alert('123')
   }

  render() { 
    return (
    <>
      <div className="top">
        <input type="text" className="inp"/>
        <button className="btn" onClick={this.on}>百度一下</button>
      </div>
    </> 
    );
  }
}
 
export default Search;